package edu.neu.swc.cloud.util;

import java.util.UUID;

/**
 * 产生UUID随机字符串工具类
 */
public final class UuidUtil {
	private UuidUtil(){}
	public static String getOrdCode(){
		String target =  UUID.randomUUID().toString().replace("-","");
		return "ORD-" + target.substring(0,8);
	}

	public static String getEquCode(){
		String target =  UUID.randomUUID().toString().replace("-","");
		return "EQU-" + target.substring(0,8);
	}

	public static String getProCode(){
		String target =  UUID.randomUUID().toString().replace("-","");
		return "PRO-" + target.substring(0,8);
	}
}
